//
//  NNNavigationViewController.swift
//  DYLive
//
//  Created by 众力金融 on 2019/4/30.
//  Copyright © 2019 众力金融. All rights reserved.
//

import UIKit

class NNNavigationViewController: UINavigationController {

    override func viewDidLoad() {
        super.viewDidLoad()
        
        navigationBar.barTintColor = .white
        navigationBar.isTranslucent = false
    }
    
}

extension NNNavigationViewController {
    
    override func pushViewController(_ viewController: UIViewController, animated: Bool) {
        if children.count > 0 {
            viewController.hidesBottomBarWhenPushed = true
        }
        super.pushViewController(viewController, animated: animated)
    }
}
